Skip to main content
Version: 5.x.x

AdapterType


import { AdapterType } from "@hyper-fetch/core"

Description

Defined in adapter/adapter.types.ts:10

Preview

type AdapterType<AdapterOptions,MethodType,StatusType,Extra,QueryParams,EndpointType> = (request: RequestInstance, requestId: string, DO_NOT_USE?: { endpointType?: EndpointType; extra?: Extra; method?: MethodType; options?: AdapterOptions; queryParams?: QueryParams; status?: StatusType }) => Promise<ResponseReturnType<any, any, any>>;

Structure

(request: RequestInstance, requestId: string, DO_NOT_USE?: [object Object]) => Promise<ResponseReturnType<any, any, any>>